package com.app.feign.Impl;

import com.app.feign.PileOpenFeign;
import com.common.entity.Code;
import com.common.entity.ResponseResult;
import org.springframework.stereotype.Component;

/**
 * @author 王鑫
 * @create 2020 -12 -02 12:54
 */
@Component
public class PileOpenFeignFallBack implements PileOpenFeign {
    @Override
    public ResponseResult getOne(String pileId) {
        System.out.println("服务降级");
        return ResponseResult.error(Code.REQUEST_ERROR).Data(null);
    }
}
